{dede:page pagesize='30'/}
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>自定义表单管理</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
	</head>
	<body>
		<table class="table shadow-sm my-3">
			<tr>
				<td colspan="4">自定义表单管理</td>
			</tr>
			<tr align="center">
				<td width="6%">id</td>
				<td width="26%">表单名称</td>
				<td width="26%">数据表名</td>
				<td>操作</td>
			</tr>
			{dede:datalist empty='<tr><td colspan="4" align="center">暂无记录</td></tr>'}
			<tr align="center">
				<td>{dede:field.diyid/}</td>
				<td><a href="diy_list.php?action=list&diyid={dede:field.diyid/}">{dede:field.name/}</a></td>
				<td>{dede:field.table/}</td>
				<td>
					<a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square"></i> 修改</a>
					<a href="diy_list.php?action=list&diyid={dede:field.diyid/}" class="btn btn-light btn-sm"><i class="fa fa-file-text"></i> 列表</a>
					<a href="diy_list.php?action=excel&diyid={dede:field.diyid/}" target="_blank" class="btn btn-light btn-sm"><i class="fa fa-share-square"></i> 导出</a>
					<a href="{dede:global.cfg_phpurl/}/diy.php?action=list&diyid={dede:field.diyid/}" class="btn btn-light btn-sm" target="_blank"><i class="fa fa-eye"></i> 预览</a>
					<a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a>
				</td>
			</tr>
			{/dede:datalist}
			<tr>
				<td colspan="4"><a href="diy_add.php" class="btn btn-success btn-sm">添加自定义表单</a></td>
			</tr>
			<tr>
				<td colspan="4" align="center">{dede:pagelist listsize='6'/}</td>
			</tr>
		</table>
	</body>
</html>